package com.lc.luzhengtang.conn;

import android.util.Log;

import com.google.gson.Gson;
import com.lc.luzhengtang.bean.CommenBean;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2017/4/17.
 */
@HttpInlet(Conn.GO_PAY)
public class ConnPay extends BaseAsyPost<CommenBean> {

    public String ordersn, paytype;


    public ConnPay(String ordersn, String paytype, AsyCallBack<CommenBean> asyCallBack) {
        super(asyCallBack);
        this.ordersn = ordersn;
        this.paytype = paytype;

    }

    @Override
    protected CommenBean parser(JSONObject object) throws Exception {
        Log.d(object.toString(), "aaaaaaaaaaaaaaaaa");
        Log.d(object.toString(), "aaaaaaaaaaaaaaaaa");


        Gson gson = new Gson();

        CommenBean loginBean = new CommenBean();

        loginBean = gson.fromJson(object.toString(), CommenBean.class);


        return loginBean;


    }
}



